declare var wx; 
class BeginScene extends eui.Component  {
    private startBtn: eui.Image;
    private resultBtn;
    private sound;
    
    public constructor() {
        super();
        this.skinName = 'gameStart';
        this.initEvents()
    }

    private initEvents() {
        this.startBtn.addEventListener(egret.TouchEvent.TOUCH_TAP,  this.game, this);
        this.resultBtn.addEventListener(egret.TouchEvent.TOUCH_TAP,  this.result, this);
            
    }

    private game() {
		SceneMange.getInstance().changeScene('gameScene');
    }

    private result() {
        if(HAS_OLD_SCORE){
            SceneMange.getInstance().changeScene('resultGame');
        }else{
            alert('请先答题哦')
        }
    }

}